package com.csist.service.impl;

import com.csist.dao.UserDao;
import com.csist.dao.UserDaoImpl.UserDaoImpl;
import com.csist.entity.Users;
import com.csist.service.UserService;
import com.csist.servlet.LoginServlet;

public class UserServiceImpl implements UserService {
    UserDao userDao=new UserDaoImpl();
    @Override
    public Users login(String username, String userpass, String usertype) {
        return userDao.login(username,userpass,usertype);
    }

    @Override
    public int getCountClass(String teacherid) {
        return userDao.getCountClass(teacherid);
    }

    @Override
    public int getCountStudent(String teacherid) {
        return userDao.getCountStudent(teacherid);
    }
}
